﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SpecailList.aspx.cs" Inherits="GRLMS.XingDai.Apply.SpecailList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
     <link href="../../lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
    <link href="../../themes/gray/skin.css" rel="stylesheet" type="text/css" />
    <script src="../../lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/core/base.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script> 
     <script src="../../lib/ligerUI/js/plugins/ligerMenu.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/plugins/ligerMenuBar.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/plugins/ligerToolBar.js" type="text/javascript"></script>
    
    <script src="../../lib/ligerUI/js/plugins/ligerDrag.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/plugins/ligerResizable.js" type="text/javascript"></script>
    
         <script src="CustomersData.js" type="text/javascript"></script> 
      <script type="text/javascript">
     
        var grid = null;
        $(function () {
            grid = $("#maingrid4").ligerGrid({
                columns: [
                { display: '客户名称', name: 'CustomerID', align: 'left', width: 120 },
                { display: '项目经理', name: 'CompanyName', minWidth: 60 },
                { display: '最后跟进时间', name: 'City', minWidth: 140 },
                 { display: '审批状态', name: 'Region', minWidth: 140 },
                { display: '详细内容', PostalCode: 'PostalCode' },
                { display: '操作',name:'CustomerID',render: function (record, rowindex, value, column) {return "<a href='#' onclick='toView()'>查看</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href='#' onclick='toEdit()'>修改</a>";}}
               
                ],  pageSize:30,where : f_getWhere(),
                data: $.extend(true,{},CustomersData), 
                width: '100%',height:'100%'
            });
            
       
            
//            render: function (record, rowindex, value, column) { 5                         /
//            /this     这里指向grid 6                         //record   行数据 7                      
//               //rowindex 行索引 8                         //value    当前的值，对应record[column.name] 9                         //column   列信息10                     
//                   return "<a href='edit.htm?id=" + value + "'>编辑</a>";11                     }
// {"CustomerID":"张三","CompanyName":"4408XX5552225855","ContactName":"公司转介","ContactTitle":"罗天","Address":"2013-03-05","City":"Berlin","Region":null,"PostalCode":"12209","Country":"Germany","Phone":"030-0074321","Fax":"030-0076545"},
//客户名称	项目经理	申请日期	类型	审批状态	详细内容	操作
//				未提交		【查看】【修改】
//				审批中		
//				审批同意		
//				审批拒绝		
	
										

            $("#pageloading").hide();
        });
        
        
        
           function toView(){
          
           $.ligerDialog.open({ title:'查看特批申请',height: 600, url: 'SpecailView.aspx', width: 800, showMax: true, showToggle: true, showMin: true, isResize: true, slide: false });
          }
          
            function toEdit(){
          
           $.ligerDialog.open({ title:'修改特批申请',height: 600, url: 'SpecailEdit.aspx', width: 800, showMax: true, showToggle: true, showMin: true, isResize: true, slide: false });
          }
          
        function f_search()
        {
            grid.options.data = $.extend(true, {}, CustomersData);
            grid.loadData(f_getWhere());
        }
        function f_getWhere()
        {
            if (!grid) return null;
            var clause = function (rowdata, rowindex)
            {
                var key = $("#txtKey").val();
                return rowdata.CustomerID.indexOf(key) > -1;
            };
            return clause; 
        }
        
        function itemclick(item)
        {
          //  alert(item.text);
           // location.href="Add.aspx";
             $.ligerDialog.open({ title:'新增特批申请',height: 600, url: 'SpecailAdd.aspx', width: 800, showMax: true, showToggle: true, showMin: true, isResize: true, slide: false });
           // location.href="../XingDai/Apply/SpecailAdd.aspx";
//             $("#framecenter").ligerGetTabManager().addTabItem({ tabid: "新增登记", text:"新增登记", url: "../XingDai/Apply/SpecailAdd.aspx" });
//             alert($("#framecenter").ligerGetTabManager());
        }
        
        $(function ()
        {

            $("#toptoolbar").ligerToolBar({ items: [
                { text: '新增特批申请', click: itemclick }
               
            ]
            });
        });
        
    </script>
</head>
<body style="padding:0px; overflow:hidden;">
    <form id="form1" runat="server">
   <div id="toptoolbar"></div>
     <div style="padding:6px;">
    <div id="searchbar">
    <%--查询条件：客户名称、手机、业务员、登记时间从、至、联系人手机号、   □跟进中 □中止  ○全部								
--%>
    客户名称：<input id="txtKey" type="text" />
    申请日期从：<input id="Text3" type="text" />至<input id="Text4" type="text" />
    类型：
    <asp:CheckBox ID="CheckBox1" runat="server" />代收费用
    <asp:CheckBox ID="CheckBox2" runat="server" />其他
        <asp:RadioButton ID="RadioButton1" runat="server" />全部	
    <input id="btnOK" type="button"  class="gr-button" value="查询" style="width:65px;height:24px" onclick="f_search()" />
</div>
    <div id="maingrid4" style="margin:0;margin-top:5px; padding:0"></div>
   

  <div style="display:none;">
  <!-- g data total ttt -->
</div>
</div>
    
   <%-- 查询条件：客户名称、申请日期从、至、  类型						
列表项	【新增特批申请】					
客户名称	项目经理	申请日期	类型	审批状态	详细内容	操作
				未提交		【查看】【修改】
				审批中		
				审批同意		
				审批拒绝		
						
维护页面（点击【新增特批申请】）						
--%>
    </form>
</body>
</html>
